#ifndef DEVICE_CONSTANTS_H
#define DEVICE_CONSTANTS_H


#define USR_CMD_ADDR 0x80020000
#define SPI_CMD_ADDR 0x80010000
#define FPGA_MONITOR 0x80030000


#define IMAGE_WIDTCH        8424
#define IMAGE_HEIGHT        6032
#define DMA_BLOCK_SIZE      2*IMAGE_WIDTCH*IMAGE_HEIGHT
#define DMA_BLOCK_NUM       1
#define IMAGE_SIZE          DMA_BLOCK_SIZE*DMA_BLOCK_NUM


#define DEVICE_OK             0
#define DEVICE_ERR            1
#define FPGA_INITIALIZE_ERR   2
#define DMA_INITIALIZE_ERR    3
#define DMA_ERR               4
#define TRIGGER_ERR           5

enum TriggerSource{
    InternalTrigger = 0x1,
    ExternalTrigger
};

enum PictureType{
    Test = 0x1,
    Actual
};

#endif // DEVICE_CONSTANTS_H
